﻿<UserControl x:Class="AR.Views.ToastNotification"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Popup x:Name="NotificationPopup" IsHitTestVisible="False" >
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="VisualStateGroup">
                <VisualStateGroup.Transitions >
                    <VisualTransition GeneratedDuration="5" To="Normal">
                    </VisualTransition>
                </VisualStateGroup.Transitions>
                <VisualState x:Name="Normal" >
                    <Storyboard x:Name="FaderStory">
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LayoutRoot">
                            <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                            <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="Hidden" >
                    <Storyboard x:Name="HideFaderStory">
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LayoutRoot">
                            <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>

        <Grid x:Name="LayoutRoot" Background="AliceBlue" Height="45" Width="200" VerticalAlignment="Center" HorizontalAlignment="Center" MouseLeftButtonUp="LayoutRoot_MouseLeftButtonUp">
            <StackPanel Orientation="Vertical">
                <TextBlock x:Name="MessageTB" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"  Foreground="Black" Text="Votre texte ICI" TextAlignment="Center" />
                <TextBlock x:Name="MessagePaused" HorizontalAlignment="Center" VerticalAlignment="Center"  Foreground="Black" Text="Clique pour faire pause." TextAlignment="Center" />
            </StackPanel>
        </Grid>
    </Popup>
</UserControl>
